package com.itheima.javabean;


/**
 * 问题：
 *       //为什么不能输出student变量的地址
 *         operator.getStudent();
 */
public class Test {
    public static void main(String[] args) {
        // 目标：掌握实体类的书写要求、特点、应用场景。
        Student s1 = new Student();
        s1.setName("播妞");
        s1.setScore(99);
        System.out.println(s1.getName());
        System.out.println(s1.getScore());
        System.out.println(s1);

        System.out.println("===========");

        StudentOperator operator = new StudentOperator(s1);
        //operator.setStudent(s1);
        operator.printPass();
        System.out.println("==========");

        //为什么不能输出student变量的地址
        //operator.getStudent();
        System.out.println(operator.getStudent());

    }
}
